<?php
$this->breadcrumbs=array(
	$this->logModelClass=>array('admin'),
	$model->id,
);

$this->menu=array(
	array('label'=>'Manage '.$this->logModelClass, 'url'=>array('admin')),
	array('label'=>'Delete '.$this->logModelClass, 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
);

$this->pageHeader = 'View '.$this->logModelClass.' #'.$model->id;
?>

<?php
	parse_str(urldecode($model->post_data), $postData);
?>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'request_method',
		array(
			'name'=>'request_url',
			'type'=>'raw',
			'value'=>$this->renderPartial('_text_pad', array('text'=>$model->request_url,'default'=>'query-string'), true),
		),
		'src_ip',
		'dst_ip',
		array(
			'name'=>'request_headers',
			'type'=>'raw',
			'value'=>'<pre>'.$model->request_headers."</pre>",
		),
		array(
			'name'=>'response_headers',
			'type'=>'raw',
			'value'=>'<pre>'.$model->response_headers."</pre>",
		),
		'request_time',
		'duration',
		array(
			'name'=>'post_data',
			'type'=>'raw',
			'value'=>$this->renderPartial('_text_pad', array('text'=>$model->post_data,'default'=>'query-string'), true),
		),
		array(
			'name'=>'response_data',
			'type'=>'raw',
			'value'=>$this->renderPartial('_text_pad', array('text'=>$model->response_data,'default'=>'json'), true),
		),
//		'response_data',
	),
)); ?>
